package com.fintech.third.service.intlog;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fintech.third.dao.log.IntDataQueryLogMapper;
import com.fintech.third.model.intlog.IntDataQueryLog;


@Service("intDataQueryLogService")
public class IntDataQueryLogImpl implements IntDataQueryLogService{

	@Autowired
	private IntDataQueryLogMapper   intDataQueryLogMapper;
	@Override
	public List<Map<String, Object>> selectAll(Map<String, String> msg) {
		return intDataQueryLogMapper.selectAll(msg);
	}

	@Override
	public List<Map<String, Object>> selectByloanIdAndSerialNum(String loanId, String serialNum) {
		return intDataQueryLogMapper.selectByloanIdAndSerialNum(loanId,serialNum);
	}

	@Override
	public int insertDataLog(IntDataQueryLog IntDataQueryLog) {
		return intDataQueryLogMapper.insertSelective(IntDataQueryLog);
	}

	@Override
	public List<IntDataQueryLog> intDataQueryLogLoanId(Map<String, String> msg) {
		String loanId=msg.get("loanId");
		return intDataQueryLogMapper.intDataQueryLogLoanId(loanId);
	}

}
